home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / ToggleBP.h.z / ToggleBP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.8 KB  |  141 lines

  1. /*
  2.  * ToggleBP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: ToggleBP.h /main/cde1_maint/2 1995/08/18 19:30:20 drk $ */
  36. /*
  37. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. /********************************************
  41.  *
  42.  *   No new fields need to be defined
  43.  *   for the Toggle widget class record
  44.  *
  45.  ********************************************/
  46.  
  47. #ifndef _XmToggleButtonP_h
  48. #define _XmToggleButtonP_h
  49.  
  50. #include <Xm/ToggleB.h>
  51. #include <Xm/LabelP.h>
  52.  
  53. #ifdef __cplusplus
  54. extern "C" {
  55. #endif
  56.  
  57. typedef struct _XmToggleButtonClassPart
  58.  {
  59.     XtPointer extension;   /* Pointer to extension record */
  60.  } XmToggleButtonClassPart;
  61.  
  62.  
  63. /****************************************************
  64.  *
  65.  * Full class record declaration for Toggle class
  66.  *
  67.  ****************************************************/
  68. typedef struct _XmToggleButtonClassRec {
  69.     CoreClassPart          core_class;
  70.     XmPrimitiveClassPart      primitive_class;
  71.     XmLabelClassPart          label_class;
  72.     XmToggleButtonClassPart    toggle_class;
  73. } XmToggleButtonClassRec;
  74.  
  75.  
  76. externalref XmToggleButtonClassRec xmToggleButtonClassRec;
  77.  
  78.  
  79. /********************************************
  80.  *
  81.  * No new fields needed for instance record
  82.  *
  83.  ********************************************/
  84.  
  85. typedef struct _XmToggleButtonPart
  86.    unsigned char    ind_type;
  87.    Boolean        visible;
  88.    Dimension        spacing;
  89.    Dimension        indicator_dim;
  90.    Boolean        indicator_set;
  91.    Pixmap        on_pixmap; 
  92.    Pixmap        insen_pixmap; 
  93.    Boolean        set;
  94.    Boolean             visual_set; /* used for visuals and does not reflect
  95.                                         the true state of the button */
  96.    Boolean        ind_on;
  97.    Boolean        fill_on_select;
  98.    Pixel        select_color;
  99.    GC            select_GC;
  100.    GC            background_gc;
  101.    XtCallbackList     value_changed_CB,
  102.                         arm_CB,
  103.                         disarm_CB;
  104.    Boolean          Armed;
  105. } XmToggleButtonPart;
  106.  
  107.  
  108.  
  109. /****************************************************************
  110.  *
  111.  * Full instance record declaration
  112.  *
  113.  ****************************************************************/
  114.  
  115. typedef struct _XmToggleButtonRec {
  116.     CorePart            core;
  117.     XmPrimitivePart     primitive;
  118.     XmLabelPart        label;
  119.     XmToggleButtonPart  toggle;
  120. } XmToggleButtonRec;
  121.  
  122.  
  123. /********    Private Function Declarations    ********/
  124. #ifdef _NO_PROTO
  125.  
  126.  
  127. #else
  128.  
  129.  
  130. #endif /* _NO_PROTO */
  131. /********    End Private Function Declarations    ********/
  132.  
  133.  
  134. #ifdef __cplusplus
  135. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  136. #endif
  137.  
  138. #endif /* _XmToggleButtonP_h */
  139. /* DON'T ADD ANYTHING AFTER THIS #endif */
  140.